import React from 'react';
import ReactDOM from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import App from './containers/App';
import Amazeui from './components/Amazeui';
import Materialui from './components/Materialui';

import {createStore} from 'redux';
import {Provider} from 'react-redux';
import todoApp from './reducers/TodoReducers';

let store = createStore(todoApp);


let unsubscribe = store.subscribe(() =>
  console.log(store.getState())
)




//react-tap-event-plugin provides onTouchTap() to all React Components.
// It's a mobile-friendly onClick() alternative for components in Material-UI, 
//especially useful for the buttons.
injectTapEventPlugin();

 

ReactDOM.render((<Provider  store={store}>
	 	<App title='Recent Changes' /> 
	 </Provider>),
	document.getElementById('content'))